package sw.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.core.io.ResourceLoader;

import sw.dao.UserGroupDao;
import sw.service.IAssetService;
import sw.service.IGroupAuthManger;
import sw.service.ILeftMenuService;
import sw.service.IProjectService;
import sw.service.IRiskCalculate;
import sw.service.IThreatService;
import sw.service.IWeaknessService;

public class BaseController {
	@Autowired
	protected IProjectService projectService;

	@Autowired
	protected ILeftMenuService leftMenuServiceImpl;

	@Autowired
	protected IGroupAuthManger groupAuthService;
	
	@Autowired
	protected IAssetService assetService;
	
	@Autowired
	protected IThreatService threatService;
	
	@Autowired
	protected IWeaknessService weaknessService;
	
	@Autowired
	protected IRiskCalculate riskCalService;
	
	@Autowired
	protected IGroupAuthManger groupAuthManger;

	@Value("${web.uploadImg-path}")
	protected String IMGPATH;
	
	@Value("${web.model-path}")
	protected String MODELPATH;
	
	@Value("${web.upload-path}")
	public String UPLOADPATH;

	protected final ResourceLoader resourceLoader;

	@Autowired
	public BaseController(ResourceLoader resourceLoader) {
		this.resourceLoader = resourceLoader;
	}
}
